//
// Created by 21577 on 2025/3/4.
//
#include<stdio.h>
#include<math.h>

int main() {
    int ge, shi, bai;
    for (int i = 100; i < 1000; i++) {
        ge = i % 10;
        shi = i / 10 % 10;
        bai = i / 100;
        if (i == pow(ge, 3) + pow(shi, 3) + pow(bai, 3))
            printf("%d ", i);
    }
    return 0;
}